﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhonTai.Industry.Services.BlockOffset.Dto.Input
{
    public class BlockOffsetUpdateInput
    {
        public long Id { get; set; }

        /// <summary>
        /// 数据块Id
        /// </summary>
        /// <remarks>数据块Id</remarks>
        [Required(ErrorMessage = "数据块Id不能为空")]
        public long BlockId { get; set; }

        /// <summary>
        /// 偏移量Id
        /// </summary>
        /// <remarks>偏移量Id</remarks>
        [Required(ErrorMessage = "偏移量Id不能为空")]
        public long OffsetId { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        /// <remarks>别名</remarks>
        [Required(ErrorMessage = "别名不能为空")]
        public string Another { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        /// <remarks>分组名称</remarks>
        public string? GroupName { get; set; }

        /// <summary>
        /// 是否订阅
        /// </summary>
        /// <remarks>是否订阅</remarks>
        public bool IsNoticed { get; set; }

        /// <summary>
        /// 订阅主题
        /// </summary>
        /// <remarks>订阅主题</remarks>
        public string? Topic { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>排序</remarks>
        public int Sort { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        /// <remarks>描述</remarks>
        public string? Description { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 上线值
        /// </summary>
        public decimal Upper { get; set; }

        /// <summary>
        /// 下限值
        /// </summary>
        public decimal Lower { get; set; }
    }
}